package com.ghxxzx.dagl.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ghxxzx.dagl.entity.DaxxWs;
import com.ghxxzx.dagl.entity.DaxxWsRg;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface DaxxWsRgMapper extends BaseMapper<DaxxWsRg> {
    @Select("SELECT * FROM `daxx_ws_rg` where dabh=#{dabh} LIMIT 1")
    DaxxWsRg findByDabh(String dabh);

    @Select("SELECT type_id FROM daxx_ws_rg WHERE dabh=#{dabh}")
    Integer findByDanbh(@Param("dabh")String dabh);
}
